import React, { Component } from 'react'
import style from "./index.module.css";
import * as echarts from 'echarts';
export default class chart extends Component {
    componentDidMount() {
        let myChart = echarts.init(document.getElementById('ani'));
        console.log(myChart);
        myChart.setOption({
            title: {
                text: '概括'
            },
            tooltip: {},
            xAxis: {
                data: ['衬衫', '羊毛衫', '雪纺衫', '裤子', '高跟鞋', '袜子']
            },
            yAxis: {
                
            },
            series: [{
                name: '销量',
                type: 'line',
                data: [1200, 1000, 1500, 2000, 1700, 2100, 1300],
            }]
        });
    }
    render() {
        return (
            <div className={style.sizxzuo} >
                <div id="ani" className={style.box}>
                    
                </div>
            </div>
        )
    }
}
